package com.cash.lemoloan.networklib.Utils;

import org.json.JSONObject;

import java.util.Iterator;
import java.util.Map;
public class JsonParse<T> {


    public static String newMapToJson(Map<String, String> map) {
        JSONObject obj = new JSONObject();
        try {
            Iterator iterator = map.keySet().iterator();
            while (iterator.hasNext()) {
                String key = iterator.next().toString();
                obj.put(key, map.get(key));
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
        return obj.toString();
    }


}
